//    Copyright (C) 2013  <lugocreation@gmail.com>
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>
package org.jpgolay.wi.realestate;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.*;
import java.util.ResourceBundle;
import java.util.Vector;
import javax.swing.*;
import javax.swing.border.*;
import org.jpgolay.gui.date.DateComboBox;
import org.jpgolay.gui.iconBar.IconBar;
import org.jpgolay.gui.slideShow.SlideShow;
import org.jpgolay.wi.util.*;
import org.netbeans.lib.awtextra.AbsoluteConstraints;
import org.netbeans.lib.awtextra.AbsoluteLayout;

// Referenced classes of package org.jpgolay.wi.realestate:
//            RealEstateField
public class RealEstateGUI extends JInternalFrame
        implements RealEstateField {

    public RealEstateGUI() {
        photo1 = null;
        photo2 = null;
        photo3 = null;
        photo4 = null;
        photo5 = null;
        photo6 = null;
        photo7 = null;
        photo8 = null;
        photo9 = null;
        photo10 = null;
        setFrameIcon(new ImageIcon(getClass().getResource("/org/jpgolay/wi/images/un_bien.png")));
        initComponents();
        screen = Toolkit.getDefaultToolkit().getScreenSize();
    }

    private void initComponents() {
        buttonGroup1 = new ButtonGroup();
        iconBar1 = new IconBar();
        jPanel2 = new JPanel();
        jToolBar1 = new JToolBar();
        ficheIdL = new JLabel();
        ficheIdF = new JTextField();
        internalIdF = new JTextField();
        dateCreationDCB = new DateComboBox();
        genreCB = new JComboBox();
        typeCB = new JComboBox();
        categorieCB = new JComboBox();
        visibiliteCB = new JComboBox();
        archiveL = new JLabel();
        archiveTrueRB = new JRadioButton();
        archiveFalseRB = new JRadioButton();
        jScrollPane1 = new JScrollPane();
        jSplitPane1 = new JSplitPane();
        leftP = new JPanel();
        addressP = new JPanel();
        residanceL = new JLabel();
        residanceF = new JTextField();
        adresse1L = new JLabel();
        adresse1F = new JTextField();
        adresse2L = new JLabel();
        adresse2F = new JTextField();
        quartierL = new JLabel();
        quartierF = new JTextField();
        secteurL = new JLabel();
        secteurCB = new JComboBox();
        lotL = new JLabel();
        lotF = new JTextField();
        vide1 = new JLabel();
        vide2 = new JLabel();
        communeL = new JLabel();
        communeF = new JTextField();
        codePostalL = new JLabel();
        codePostalF = new JTextField();
        etageCB = new JComboBox();
        etageL = new JLabel();
        expositionCB = new JComboBox();
        expositionL = new JLabel();
        ascenseurCB = new JComboBox();
        ascenseurL = new JLabel();
        sortantL = new JLabel();
        sortantSP = new JScrollPane();
        sortantTA = new JTextArea();
        disponibiliteP = new JPanel();
        dateDisponibiliteL = new JLabel();
        dateDisponibiliteDCB = new DateComboBox();
        departSouhaiteDCB = new DateComboBox();
        departAccepteL = new JLabel();
        departAccepteDCB = new DateComboBox();
        optionL = new JLabel();
        optionCB = new JComboBox();
        reserveL = new JLabel();
        reserveDCB = new DateComboBox();
        clientL = new JLabel();
        clientF = new JTextField();
        clefL = new JLabel();
        clefCB = new JComboBox();
        panneauL = new JLabel();
        panneauF = new JTextField();
        optionFiscL = new JLabel();
        optionFiscCB = new JComboBox();
        departSouhaiterB = new JButton();
        comptabiliteP = new JPanel();
        prixLoyerL = new JLabel();
        prixLoyerF = new JTextField();
        prixVenteL = new JLabel();
        prixVenteF = new JTextField();
        fraisAgenceL = new JLabel();
        fraisAgenceF = new JTextField();
        cautionL = new JLabel();
        cautionF = new JTextField();
        provChargeL = new JLabel();
        provChargeF = new JTextField();
        chargesL = new JLabel();
        chargesF = new JTextField();
        equipementsP = new JPanel();
        meubleL = new JLabel();
        meubleCB = new JComboBox();
        solL = new JLabel();
        solCB = new JComboBox();
        placardL = new JLabel();
        placardCB = new JComboBox();
        chemineeL = new JLabel();
        chemineeCB = new JComboBox();
        chauffageL = new JLabel();
        chauffageCB = new JComboBox();
        litL = new JLabel();
        litCB = new JComboBox();
        tvL = new JLabel();
        tvCB = new JComboBox();
        standingL = new JLabel();
        standingCB = new JComboBox();
        etatL = new JLabel();
        etatCB = new JComboBox();
        viagerCB = new JComboBox();
        viagerL = new JLabel();
        duplexL = new JLabel();
        duplexCB = new JComboBox();
        mursL = new JLabel();
        mursCB = new JComboBox();
        piecesP = new JPanel();
        hallL = new JLabel();
        hallCB = new JComboBox();
        surfaceHallF = new JTextField();
        jLabel1 = new JLabel();
        sejourL = new JLabel();
        sejourCB = new JComboBox();
        surfaceSejourF = new JTextField();
        jLabel2 = new JLabel();
        cuisineL = new JLabel();
        cuisineCB = new JComboBox();
        surfaceCuisineF = new JTextField();
        jLabel3 = new JLabel();
        mezzanineL = new JLabel();
        mezzanineCB = new JComboBox();
        surfaceMezzanineF = new JTextField();
        jLabel4 = new JLabel();
        loggiaL = new JLabel();
        loggiaCB = new JComboBox();
        surfaceLoggiaF = new JTextField();
        jLabel5 = new JLabel();
        caveL = new JLabel();
        caveCB = new JComboBox();
        surfaceCaveF = new JTextField();
        jLabel6 = new JLabel();
        chambreL = new JLabel();
        chambreCB = new JComboBox();
        surfaceChambreF = new JTextField();
        jLabel7 = new JLabel();
        surfaceHabitableL = new JLabel();
        surfaceHabitableF = new JTextField();
        jLabel8 = new JLabel();
        salleBainL = new JLabel();
        salleBainCB = new JComboBox();
        doucheL = new JLabel();
        doucheCB = new JComboBox();
        wcL = new JLabel();
        wcCB = new JComboBox();
        cellierL = new JLabel();
        cellierCB = new JComboBox();
        surfaceCellierF = new JTextField();
        jLabel17 = new JLabel();
        exterieurP = new JPanel();
        balconL = new JLabel();
        balconCB = new JComboBox();
        surfaceBalconF = new JTextField();
        jLabel9 = new JLabel();
        terrasseL = new JLabel();
        terrasseCB = new JComboBox();
        surfaceTerrasseF = new JTextField();
        jLabel10 = new JLabel();
        jardinL = new JLabel();
        jardinCB = new JComboBox();
        surfaceTerrainF = new JTextField();
        jLabel11 = new JLabel();
        piscineL = new JLabel();
        piscineCB = new JComboBox();
        jLabel13 = new JLabel();
        jLabel12 = new JLabel();
        parkingL = new JLabel();
        parkingCB = new JComboBox();
        jLabel14 = new JLabel();
        jLabel15 = new JLabel();
        garageL = new JLabel();
        garageCB = new JComboBox();
        surfaceGarageF = new JTextField();
        vide = new JLabel();
        rightP = new JPanel();
        jSplitPane2 = new JSplitPane();
        photosP = new JPanel();
        commandeP = new JPanel();
        diaporamaB = new JButton();
        photoSP = new JScrollPane();
        photoP = new JPanel();
        photo1L = new JLabel();
        photo2L = new JLabel();
        photo3L = new JLabel();
        photo4L = new JLabel();
        photo5L = new JLabel();
        photo1B = new JButton();
        photo1B1 = new JButton();
        photo2B = new JButton();
        photo2B1 = new JButton();
        photo3B = new JButton();
        photo3B1 = new JButton();
        photo4B = new JButton();
        photo4B1 = new JButton();
        photo5B = new JButton();
        photo5B1 = new JButton();
        photo6L = new JLabel();
        photo7L = new JLabel();
        photo8L = new JLabel();
        photo9L = new JLabel();
        photo10L = new JLabel();
        photo6B = new JButton();
        photo6B1 = new JButton();
        photo7B = new JButton();
        photo7B1 = new JButton();
        photo8B = new JButton();
        photo8B1 = new JButton();
        photo9B = new JButton();
        photo9B1 = new JButton();
        photo10B = new JButton();
        photo10B1 = new JButton();
        textP = new JPanel();
        jTabbedPane1 = new JTabbedPane();
        descriptifSP = new JScrollPane();
        descriptifTA = new JTextArea();
        observationSP = new JScrollPane();
        observationTA = new JTextArea();
        observationImprSP = new JScrollPane();
        observationImprTA = new JTextArea();
        jMenuBar1 = new JMenuBar();
        options = new JMenu();
        newMI = new JMenuItem();
        openMI = new JMenuItem();
        saveMI = new JMenuItem();
        modifyMI = new JMenuItem();
        deleteMI = new JMenuItem();
        printMI = new JMenuItem();
        helpMI = new JMenuItem();
        setTitle(ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("realestate_title"));
        getContentPane().add(iconBar1, "North");
        jPanel2.setLayout(new BorderLayout());
        ficheIdL.setForeground(new Color(0, 0, 204));
        ficheIdL.setHorizontalAlignment(0);
        ficheIdL.setText("FICHE");
        jToolBar1.add(ficheIdL);
        ficheIdF.setEditable(false);
        ficheIdF.setFont(new Font("Dialog", 1, 12));
        ficheIdF.setForeground(new Color(0, 0, 204));
        ficheIdF.setHorizontalAlignment(0);
        ficheIdF.setText("num\351ro fiche");
        ficheIdF.setPreferredSize(new Dimension(80, 25));
        jToolBar1.add(ficheIdF);
        internalIdF.setEditable(false);
        internalIdF.setFont(new Font("Dialog", 1, 12));
        internalIdF.setHorizontalAlignment(0);
        internalIdF.setText("num\351ro interne");
        internalIdF.setToolTipText("r\351f\351rence interne");
        internalIdF.setPreferredSize(new Dimension(80, 20));
        jToolBar1.add(internalIdF);
        dateCreationDCB.setEditable(false);
        dateCreationDCB.setToolTipText("WIDate de Cr\351ation jj/mm/aaaa");
        dateCreationDCB.setPreferredSize(new Dimension(110, 25));
        dateCreationDCB.setEnabled(false);
        jToolBar1.add(dateCreationDCB);
        genreCB.setModel(new DefaultComboBoxModel(new String[]{
                    "appartement", "maison", "local commercial", "garage", "parking", "divers"
                }));
        genreCB.setToolTipText("Genre");
        genreCB.setPreferredSize(new Dimension(110, 25));
        jToolBar1.add(genreCB);
        typeCB.setModel(new DefaultComboBoxModel(new String[]{
                    "studio", "T1", "T1bis", "T2", "T3", "T4", "T5", "T6", ">T6", "autre"
                }));
        typeCB.setToolTipText("Type");
        typeCB.setPreferredSize(new Dimension(90, 25));
        jToolBar1.add(typeCB);
        categorieCB.setModel(new DefaultComboBoxModel(new String[]{
                    "location", "vente", "vill\351giature"
                }));
        categorieCB.setToolTipText("Categorie");
        jToolBar1.add(categorieCB);
        visibiliteCB.setModel(new DefaultComboBoxModel(new String[]{
                    "agence", "portail", "site"
                }));
        visibiliteCB.setToolTipText("Visibilit\351");
        visibiliteCB.setPreferredSize(new Dimension(90, 25));
        jToolBar1.add(visibiliteCB);
        archiveL.setText(" Archive");
        jToolBar1.add(archiveL);
        archiveTrueRB.setText("oui");
        buttonGroup1.add(archiveTrueRB);
        jToolBar1.add(archiveTrueRB);
        archiveFalseRB.setSelected(true);
        archiveFalseRB.setText("non");
        buttonGroup1.add(archiveFalseRB);
        jToolBar1.add(archiveFalseRB);
        jPanel2.add(jToolBar1, "North");
        jSplitPane1.setBackground(new Color(142, 202, 251));
        jSplitPane1.setDividerLocation(655);
        leftP.setLayout(new GridBagLayout());
        addressP.setLayout(new AbsoluteLayout());
        addressP.setBorder(new TitledBorder(new LineBorder(new Color(0, 255, 0), 2), "", 0, 0, new Font("Dialog", 1, 12), new Color(0, 255, 0)));
        residanceL.setHorizontalAlignment(0);
        residanceL.setText("R\351sidence");
        addressP.add(residanceL, new AbsoluteConstraints(10, 70, -1, 23));
        residanceF.setEditable(false);
        residanceF.setHorizontalAlignment(0);
        residanceF.setText("nom de la residence");
        addressP.add(residanceF, new AbsoluteConstraints(80, 70, 183, 23));
        adresse1L.setHorizontalAlignment(0);
        adresse1L.setText("Adresse");
        addressP.add(adresse1L, new AbsoluteConstraints(10, 100, -1, 23));
        adresse1F.setEditable(false);
        adresse1F.setText("adresse");
        addressP.add(adresse1F, new AbsoluteConstraints(80, 100, 313, 23));
        addressP.add(adresse2L, new AbsoluteConstraints(10, 160, 106, 1));
        adresse2F.setEditable(false);
        adresse2F.setText("adresse");
        addressP.add(adresse2F, new AbsoluteConstraints(80, 130, 313, 23));
        quartierL.setForeground(new Color(0, 0, 204));
        quartierL.setHorizontalAlignment(0);
        quartierL.setText("Quartier");
        addressP.add(quartierL, new AbsoluteConstraints(160, 10, -1, 23));
        quartierF.setEditable(false);
        addressP.add(quartierF, new AbsoluteConstraints(224, 10, 169, 23));
        secteurL.setForeground(new Color(0, 0, 204));
        secteurL.setHorizontalAlignment(0);
        secteurL.setText("Secteur");
        addressP.add(secteurL, new AbsoluteConstraints(10, 10, -1, 23));
        secteurCB.setModel(new DefaultComboBoxModel(new String[]{
                    "?", "Nord", "Sud", "Est", "Ouest", "Centre"
                }));
        addressP.add(secteurCB, new AbsoluteConstraints(80, 10, -1, 23));
        lotL.setHorizontalAlignment(0);
        lotL.setText("Lot");
        addressP.add(lotL, new AbsoluteConstraints(275, 70, -1, 23));
        lotF.setEditable(false);
        lotF.setHorizontalAlignment(0);
        lotF.setText("num lot");
        addressP.add(lotF, new AbsoluteConstraints(345, 70, 48, 23));
        addressP.add(vide1, new AbsoluteConstraints(10, 110, -1, -1));
        addressP.add(vide2, new AbsoluteConstraints(10, 110, -1, -1));
        communeL.setForeground(new Color(0, 0, 204));
        communeL.setHorizontalAlignment(0);
        communeL.setText("Commune");
        addressP.add(communeL, new AbsoluteConstraints(10, 160, -1, 23));
        communeF.setEditable(false);
        communeF.setText("commune");
        addressP.add(communeF, new AbsoluteConstraints(80, 160, 120, 23));
        codePostalL.setHorizontalAlignment(0);
        codePostalL.setText("Code postal");
        codePostalL.setToolTipText("5 chiffres maxi");
        addressP.add(codePostalL, new AbsoluteConstraints(220, 160, -1, 23));
        codePostalF.setEditable(false);
        codePostalF.setHorizontalAlignment(0);
        codePostalF.setText("code postal");
        addressP.add(codePostalF, new AbsoluteConstraints(310, 160, 83, 23));
        etageCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "RDC", "RDC+1", "RDC+2", "RDC+3", "1ER", "2EM", "3EM", "4EM", "5EM",
                    "6EM", "7EM", "8EM", "9EM", "10EM", "11EM", "12EM", "13EM", "14EM", "15EM",
                    "16EM", "17EM", "18EM", "19EM", "20EM", "21EM", "22EM", "23EM", "24EM", "25EM"
                }));
        addressP.add(etageCB, new AbsoluteConstraints(200, 40, 65, 23));
        etageL.setForeground(new Color(0, 0, 204));
        etageL.setHorizontalAlignment(0);
        etageL.setText("Etage");
        addressP.add(etageL, new AbsoluteConstraints(160, 40, -1, 23));
        expositionCB.setModel(new DefaultComboBoxModel(new String[]{
                    "?", "N", "S", "E", "O", "NE", "NO", "SE", "SO", "NS",
                    "EO", "NE-SO", "NO-SE"
                }));
        addressP.add(expositionCB, new AbsoluteConstraints(80, 40, 65, 23));
        expositionL.setForeground(new Color(0, 0, 204));
        expositionL.setHorizontalAlignment(0);
        expositionL.setText("Exposition");
        addressP.add(expositionL, new AbsoluteConstraints(10, 40, -1, 23));
        ascenseurCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        addressP.add(ascenseurCB, new AbsoluteConstraints(345, 40, -1, 23));
        ascenseurL.setForeground(new Color(0, 0, 204));
        ascenseurL.setHorizontalAlignment(0);
        ascenseurL.setText("Ascenseur");
        addressP.add(ascenseurL, new AbsoluteConstraints(275, 40, -1, 23));
        sortantL.setHorizontalAlignment(0);
        sortantL.setText("Sortant");
        sortantL.setToolTipText("locataire");
        addressP.add(sortantL, new AbsoluteConstraints(10, 190, -1, 23));
        sortantTA.setColumns(28);
        sortantTA.setLineWrap(true);
        sortantTA.setRows(1);
        sortantTA.setWrapStyleWord(true);
        sortantSP.setViewportView(sortantTA);
        addressP.add(sortantSP, new AbsoluteConstraints(80, 190, 313, 23));
        GridBagConstraints gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = 1;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        gridBagConstraints.insets = new Insets(2, 2, 2, 2);
        leftP.add(addressP, gridBagConstraints);
        disponibiliteP.setLayout(new AbsoluteLayout());
        disponibiliteP.setBorder(new TitledBorder(new LineBorder(new Color(255, 153, 0), 2), "", 0, 0, new Font("Dialog", 1, 12), new Color(255, 153, 0)));
        dateDisponibiliteL.setForeground(new Color(0, 0, 204));
        dateDisponibiliteL.setHorizontalAlignment(0);
        dateDisponibiliteL.setText("Disponibilit\351");
        disponibiliteP.add(dateDisponibiliteL, new AbsoluteConstraints(10, 10, -1, 23));
        dateDisponibiliteDCB.setEditable(false);
        dateDisponibiliteDCB.setToolTipText("jj/mm/aaaa");
        dateDisponibiliteDCB.setEnabled(false);
        disponibiliteP.add(dateDisponibiliteDCB, new AbsoluteConstraints(120, 10, 120, 28));
        departSouhaiteDCB.setEditable(false);
        departSouhaiteDCB.setToolTipText("jj/mm/aaaa");
        departSouhaiteDCB.setEnabled(false);
        disponibiliteP.add(departSouhaiteDCB, new AbsoluteConstraints(120, 40, 120, 28));
        departAccepteL.setHorizontalAlignment(0);
        departAccepteL.setText("D\351part accept\351");
        disponibiliteP.add(departAccepteL, new AbsoluteConstraints(10, 70, -1, 23));
        departAccepteDCB.setEditable(false);
        departAccepteDCB.setToolTipText("jj/mm/aaaa");
        departAccepteDCB.setEnabled(false);
        disponibiliteP.add(departAccepteDCB, new AbsoluteConstraints(120, 70, 120, 28));
        optionL.setForeground(new Color(204, 0, 0));
        optionL.setHorizontalAlignment(0);
        optionL.setText("Option");
        disponibiliteP.add(optionL, new AbsoluteConstraints(10, 160, -1, 23));
        optionCB.setForeground(new Color(204, 0, 0));
        optionCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        disponibiliteP.add(optionCB, new AbsoluteConstraints(60, 160, -1, 23));
        reserveL.setForeground(new Color(204, 0, 0));
        reserveL.setHorizontalAlignment(0);
        reserveL.setText("R\351serv\351 jusqu'au :");
        disponibiliteP.add(reserveL, new AbsoluteConstraints(10, 100, -1, 23));
        reserveDCB.setEditable(false);
        reserveDCB.setFont(new Font("Dialog", 1, 12));
        reserveDCB.setForeground(new Color(204, 0, 0));
        reserveDCB.setToolTipText("jj/mm/aaaa");
        reserveDCB.setEnabled(false);
        disponibiliteP.add(reserveDCB, new AbsoluteConstraints(120, 100, 120, 28));
        clientL.setHorizontalAlignment(0);
        clientL.setText("Client");
        clientL.setToolTipText("int\351ress\351");
        disponibiliteP.add(clientL, new AbsoluteConstraints(10, 130, -1, 23));
        clientF.setEditable(false);
        clientF.setHorizontalAlignment(0);
        clientF.setText("nom du client");
        disponibiliteP.add(clientF, new AbsoluteConstraints(60, 130, 180, 23));
        clefL.setHorizontalAlignment(0);
        clefL.setText("Cl\351");
        disponibiliteP.add(clefL, new AbsoluteConstraints(10, 190, -1, 23));
        clefCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "1", "2", "3", "4", "5", " > 5"
                }));
        disponibiliteP.add(clefCB, new AbsoluteConstraints(60, 190, -1, 23));
        panneauL.setHorizontalAlignment(0);
        panneauL.setText("Panneau");
        disponibiliteP.add(panneauL, new AbsoluteConstraints(120, 190, -1, 23));
        panneauF.setEditable(false);
        disponibiliteP.add(panneauF, new AbsoluteConstraints(180, 190, 60, 23));
        optionFiscL.setHorizontalAlignment(0);
        optionFiscL.setText("Opt. fisc");
        optionFiscL.setToolTipText("option fiscale");
        disponibiliteP.add(optionFiscL, new AbsoluteConstraints(120, 160, -1, 23));
        optionFiscCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "APL", "1", "1P", "2", "2B", "3", "3P", "4",
                    "5"
                }));
        disponibiliteP.add(optionFiscCB, new AbsoluteConstraints(180, 160, 60, 23));
        departSouhaiterB.setText("D\351part souhait\351");
        departSouhaiterB.setToolTipText("Cliquez pour Disponibilit\351 = D\351part souhait\351");
        departSouhaiterB.setBorder(null);
        departSouhaiterB.setMargin(new Insets(2, 2, 2, 2));
        departSouhaiterB.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                departSouhaiterBActionPerformed(evt);
            }
        });
        disponibiliteP.add(departSouhaiterB, new AbsoluteConstraints(10, 40, -1, 23));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = 1;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        gridBagConstraints.insets = new Insets(2, 2, 2, 2);
        leftP.add(disponibiliteP, gridBagConstraints);
        comptabiliteP.setLayout(new AbsoluteLayout());
        comptabiliteP.setBorder(new TitledBorder(new LineBorder(new Color(255, 0, 0), 2), "", 0, 0, new Font("Dialog", 1, 12), new Color(255, 0, 0)));
        prixLoyerL.setForeground(new Color(0, 0, 204));
        prixLoyerL.setHorizontalAlignment(0);
        prixLoyerL.setText("Prix loyer");
        comptabiliteP.add(prixLoyerL, new AbsoluteConstraints(10, 10, -1, 23));
        prixLoyerF.setEditable(false);
        prixLoyerF.setHorizontalAlignment(4);
        prixLoyerF.setText("0.00");
        comptabiliteP.add(prixLoyerF, new AbsoluteConstraints(130, 10, 60, 23));
        prixVenteL.setForeground(new Color(0, 0, 204));
        prixVenteL.setHorizontalAlignment(0);
        prixVenteL.setText("Prix vente");
        comptabiliteP.add(prixVenteL, new AbsoluteConstraints(405, 40, -1, 23));
        prixVenteF.setEditable(false);
        prixVenteF.setHorizontalAlignment(4);
        prixVenteF.setText("0.00");
        comptabiliteP.add(prixVenteF, new AbsoluteConstraints(524, 40, 110, 23));
        fraisAgenceL.setForeground(new Color(0, 0, 204));
        fraisAgenceL.setHorizontalAlignment(0);
        fraisAgenceL.setText("Frais d'agence");
        comptabiliteP.add(fraisAgenceL, new AbsoluteConstraints(405, 10, -1, 23));
        fraisAgenceF.setEditable(false);
        fraisAgenceF.setHorizontalAlignment(4);
        fraisAgenceF.setText("0.00");
        comptabiliteP.add(fraisAgenceF, new AbsoluteConstraints(574, 10, 60, 23));
        cautionL.setForeground(new Color(0, 0, 204));
        cautionL.setHorizontalAlignment(0);
        cautionL.setText("Caution");
        comptabiliteP.add(cautionL, new AbsoluteConstraints(230, 10, -1, 23));
        cautionF.setEditable(false);
        cautionF.setHorizontalAlignment(4);
        cautionF.setText("0.00");
        comptabiliteP.add(cautionF, new AbsoluteConstraints(330, 10, 60, 23));
        provChargeL.setForeground(new Color(0, 0, 204));
        provChargeL.setHorizontalAlignment(0);
        provChargeL.setText("Prov / charges");
        comptabiliteP.add(provChargeL, new AbsoluteConstraints(10, 40, -1, 23));
        provChargeF.setEditable(false);
        provChargeF.setHorizontalAlignment(4);
        provChargeF.setText("0.00");
        comptabiliteP.add(provChargeF, new AbsoluteConstraints(130, 40, 60, 23));
        chargesL.setHorizontalAlignment(0);
        chargesL.setText("Charges");
        comptabiliteP.add(chargesL, new AbsoluteConstraints(230, 40, -1, 23));
        chargesF.setEditable(false);
        chargesF.setHorizontalAlignment(4);
        chargesF.setText("0.00");
        comptabiliteP.add(chargesF, new AbsoluteConstraints(330, 40, 60, 23));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        gridBagConstraints.insets = new Insets(2, 2, 2, 2);
        leftP.add(comptabiliteP, gridBagConstraints);
        equipementsP.setLayout(new AbsoluteLayout());
        equipementsP.setBorder(new TitledBorder(new LineBorder(new Color(0, 204, 204), 2), "", 0, 0, new Font("Dialog", 1, 12), new Color(0, 204, 204)));
        meubleL.setForeground(new Color(0, 0, 204));
        meubleL.setHorizontalAlignment(0);
        meubleL.setText("Meubl\351");
        equipementsP.add(meubleL, new AbsoluteConstraints(185, 10, -1, 23));
        meubleCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        equipementsP.add(meubleCB, new AbsoluteConstraints(260, 10, 80, 23));
        solL.setHorizontalAlignment(0);
        solL.setText("Sol");
        equipementsP.add(solL, new AbsoluteConstraints(185, 40, -1, 23));
        solCB.setModel(new DefaultComboBoxModel(new String[]{
                    "?", "autre", "carrelage", "ciment", "lino", "mixte", "moquette", "plancher", "parquet", "plastique",
                    "stratifi\351", "tapis"
                }));
        equipementsP.add(solCB, new AbsoluteConstraints(260, 40, 80, 23));
        placardL.setHorizontalAlignment(0);
        placardL.setText("Placard");
        equipementsP.add(placardL, new AbsoluteConstraints(360, 70, -1, 23));
        placardCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "1", "2", "3", "4", "5", "> 5"
                }));
        equipementsP.add(placardCB, new AbsoluteConstraints(450, 70, 50, 23));
        chemineeL.setHorizontalAlignment(0);
        chemineeL.setText("Chemin\351e");
        equipementsP.add(chemineeL, new AbsoluteConstraints(360, 40, -1, 23));
        chemineeCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        equipementsP.add(chemineeCB, new AbsoluteConstraints(450, 40, 50, 23));
        chauffageL.setForeground(new Color(0, 0, 204));
        chauffageL.setHorizontalAlignment(0);
        chauffageL.setText("Chauffage");
        equipementsP.add(chauffageL, new AbsoluteConstraints(10, 70, -1, 23));
        chauffageCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "autre", "centrale", "collectif", "\351lectrique", "gaz", "mixte", "sol"
                }));
        equipementsP.add(chauffageCB, new AbsoluteConstraints(95, 70, 70, 23));
        litL.setHorizontalAlignment(0);
        litL.setText("Lit");
        equipementsP.add(litL, new AbsoluteConstraints(520, 40, -1, 23));
        litCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "1", "2", "3", "4", "5", "6", "7", "8",
                    ">8"
                }));
        equipementsP.add(litCB, new AbsoluteConstraints(590, 40, 50, 23));
        tvL.setHorizontalAlignment(0);
        tvL.setText("TV");
        equipementsP.add(tvL, new AbsoluteConstraints(520, 70, -1, 23));
        tvCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "c\342ble", "sat"
                }));
        equipementsP.add(tvCB, new AbsoluteConstraints(590, 70, 50, 23));
        standingL.setHorizontalAlignment(0);
        standingL.setText("Standing");
        equipementsP.add(standingL, new AbsoluteConstraints(10, 10, -1, 23));
        standingCB.setModel(new DefaultComboBoxModel(new String[]{
                    "normal", "bon", "tr\350s bon", "grd luxe"
                }));
        equipementsP.add(standingCB, new AbsoluteConstraints(95, 10, 70, 23));
        etatL.setHorizontalAlignment(0);
        etatL.setText("Etat");
        equipementsP.add(etatL, new AbsoluteConstraints(10, 40, -1, 23));
        etatCB.setModel(new DefaultComboBoxModel(new String[]{
                    "bon", "ancien", "\340 refaire", "excellent", "neuf"
                }));
        equipementsP.add(etatCB, new AbsoluteConstraints(95, 40, 70, 23));
        viagerCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        equipementsP.add(viagerCB, new AbsoluteConstraints(590, 10, 50, 23));
        viagerL.setHorizontalAlignment(0);
        viagerL.setText("Viager");
        equipementsP.add(viagerL, new AbsoluteConstraints(520, 10, -1, 23));
        duplexL.setText("Duplex");
        equipementsP.add(duplexL, new AbsoluteConstraints(360, 10, -1, 23));
        duplexCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        equipementsP.add(duplexCB, new AbsoluteConstraints(450, 10, 50, 23));
        mursL.setText("Murs");
        equipementsP.add(mursL, new AbsoluteConstraints(185, 70, -1, 23));
        mursCB.setModel(new DefaultComboBoxModel(new String[]{
                    "?", "tapisserie", "cr\351pi", "peinture", "mixte", "autre"
                }));
        equipementsP.add(mursCB, new AbsoluteConstraints(260, 70, 80, 23));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        gridBagConstraints.insets = new Insets(2, 2, 2, 2);
        leftP.add(equipementsP, gridBagConstraints);
        piecesP.setLayout(new AbsoluteLayout());
        piecesP.setBorder(new TitledBorder(new LineBorder(new Color(153, 0, 153), 2), "", 0, 0, new Font("Dialog", 1, 12), new Color(153, 0, 153)));
        hallL.setHorizontalAlignment(0);
        hallL.setText("Hall");
        piecesP.add(hallL, new AbsoluteConstraints(10, 10, -1, 23));
        hallCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        piecesP.add(hallCB, new AbsoluteConstraints(80, 10, 60, 23));
        surfaceHallF.setColumns(1);
        surfaceHallF.setEditable(false);
        surfaceHallF.setHorizontalAlignment(4);
        surfaceHallF.setText("0");
        piecesP.add(surfaceHallF, new AbsoluteConstraints(145, 10, 30, 23));
        jLabel1.setText("m\262");
        piecesP.add(jLabel1, new AbsoluteConstraints(176, 10, -1, 23));
        sejourL.setHorizontalAlignment(0);
        sejourL.setText("S\351jour");
        piecesP.add(sejourL, new AbsoluteConstraints(10, 40, -1, 23));
        sejourCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        piecesP.add(sejourCB, new AbsoluteConstraints(80, 40, 60, 23));
        surfaceSejourF.setColumns(1);
        surfaceSejourF.setEditable(false);
        surfaceSejourF.setHorizontalAlignment(4);
        surfaceSejourF.setText("0");
        piecesP.add(surfaceSejourF, new AbsoluteConstraints(145, 40, 30, 23));
        jLabel2.setText("m\262");
        piecesP.add(jLabel2, new AbsoluteConstraints(176, 40, -1, 23));
        cuisineL.setHorizontalAlignment(0);
        cuisineL.setText("Cuisine");
        piecesP.add(cuisineL, new AbsoluteConstraints(10, 100, -1, 23));
        cuisineCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "\351quip\351e", "non \351quip\351e"
                }));
        piecesP.add(cuisineCB, new AbsoluteConstraints(80, 100, 60, 23));
        surfaceCuisineF.setColumns(1);
        surfaceCuisineF.setEditable(false);
        surfaceCuisineF.setHorizontalAlignment(4);
        surfaceCuisineF.setText("0");
        piecesP.add(surfaceCuisineF, new AbsoluteConstraints(145, 100, 30, 23));
        jLabel3.setText("m\262");
        piecesP.add(jLabel3, new AbsoluteConstraints(176, 100, -1, 23));
        mezzanineL.setHorizontalAlignment(0);
        mezzanineL.setText("Mezzanine");
        piecesP.add(mezzanineL, new AbsoluteConstraints(200, 40, -1, 23));
        mezzanineCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        piecesP.add(mezzanineCB, new AbsoluteConstraints(270, 40, 60, 23));
        surfaceMezzanineF.setColumns(1);
        surfaceMezzanineF.setEditable(false);
        surfaceMezzanineF.setHorizontalAlignment(4);
        surfaceMezzanineF.setText("0");
        piecesP.add(surfaceMezzanineF, new AbsoluteConstraints(335, 40, 30, 23));
        jLabel4.setText("m\262");
        piecesP.add(jLabel4, new AbsoluteConstraints(366, 40, -1, 23));
        loggiaL.setHorizontalAlignment(0);
        loggiaL.setText("Loggia");
        piecesP.add(loggiaL, new AbsoluteConstraints(200, 70, -1, 23));
        loggiaCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        piecesP.add(loggiaCB, new AbsoluteConstraints(270, 70, 60, 23));
        surfaceLoggiaF.setColumns(1);
        surfaceLoggiaF.setEditable(false);
        surfaceLoggiaF.setHorizontalAlignment(4);
        surfaceLoggiaF.setText("0");
        piecesP.add(surfaceLoggiaF, new AbsoluteConstraints(335, 70, 30, 23));
        jLabel5.setText("m\262");
        piecesP.add(jLabel5, new AbsoluteConstraints(366, 70, -1, 23));
        caveL.setForeground(new Color(0, 0, 204));
        caveL.setHorizontalAlignment(0);
        caveL.setText("Cave");
        piecesP.add(caveL, new AbsoluteConstraints(200, 130, -1, 23));
        caveCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        piecesP.add(caveCB, new AbsoluteConstraints(270, 130, 60, 23));
        surfaceCaveF.setColumns(1);
        surfaceCaveF.setEditable(false);
        surfaceCaveF.setHorizontalAlignment(4);
        surfaceCaveF.setText("0");
        piecesP.add(surfaceCaveF, new AbsoluteConstraints(335, 130, 30, 23));
        jLabel6.setText("m\262");
        piecesP.add(jLabel6, new AbsoluteConstraints(366, 130, -1, 23));
        chambreL.setHorizontalAlignment(0);
        chambreL.setText("Chambre(s)");
        piecesP.add(chambreL, new AbsoluteConstraints(10, 70, -1, 23));
        chambreCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "1", "2", "3", "4", "5", "6", " > 6"
                }));
        piecesP.add(chambreCB, new AbsoluteConstraints(80, 70, 60, 23));
        surfaceChambreF.setColumns(1);
        surfaceChambreF.setEditable(false);
        surfaceChambreF.setHorizontalAlignment(4);
        surfaceChambreF.setText("0");
        piecesP.add(surfaceChambreF, new AbsoluteConstraints(145, 70, 30, 23));
        jLabel7.setText("m\262");
        piecesP.add(jLabel7, new AbsoluteConstraints(176, 70, -1, 23));
        surfaceHabitableL.setForeground(new Color(0, 0, 204));
        surfaceHabitableL.setHorizontalAlignment(0);
        surfaceHabitableL.setText("Surface Habitable");
        piecesP.add(surfaceHabitableL, new AbsoluteConstraints(200, 160, -1, 23));
        surfaceHabitableF.setColumns(1);
        surfaceHabitableF.setEditable(false);
        surfaceHabitableF.setHorizontalAlignment(4);
        surfaceHabitableF.setText("0");
        piecesP.add(surfaceHabitableF, new AbsoluteConstraints(335, 160, 30, 23));
        jLabel8.setText("m\262");
        piecesP.add(jLabel8, new AbsoluteConstraints(366, 160, -1, 23));
        salleBainL.setHorizontalAlignment(0);
        salleBainL.setText("S.D.B.");
        piecesP.add(salleBainL, new AbsoluteConstraints(10, 130, -1, 23));
        salleBainCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "1", "2", "3"
                }));
        piecesP.add(salleBainCB, new AbsoluteConstraints(80, 130, 60, 23));
        doucheL.setHorizontalAlignment(0);
        doucheL.setText("Douche");
        piecesP.add(doucheL, new AbsoluteConstraints(200, 10, -1, 23));
        doucheCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "1", "2", "3", "s\351par\351"
                }));
        piecesP.add(doucheCB, new AbsoluteConstraints(270, 10, 60, 23));
        wcL.setHorizontalAlignment(0);
        wcL.setText("WC");
        piecesP.add(wcL, new AbsoluteConstraints(10, 160, -1, 23));
        wcCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "1", "2", "3", "s\351par\351"
                }));
        piecesP.add(wcCB, new AbsoluteConstraints(80, 160, 60, 23));
        cellierL.setText("Cellier");
        piecesP.add(cellierL, new AbsoluteConstraints(200, 100, -1, 23));
        cellierCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        piecesP.add(cellierCB, new AbsoluteConstraints(270, 100, 60, 23));
        surfaceCellierF.setEditable(false);
        surfaceCellierF.setHorizontalAlignment(4);
        surfaceCellierF.setText("0");
        piecesP.add(surfaceCellierF, new AbsoluteConstraints(335, 100, 30, 23));
        jLabel17.setText("m\262");
        piecesP.add(jLabel17, new AbsoluteConstraints(366, 100, -1, 23));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = 1;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        gridBagConstraints.insets = new Insets(2, 2, 2, 2);
        leftP.add(piecesP, gridBagConstraints);
        exterieurP.setLayout(new AbsoluteLayout());
        exterieurP.setBorder(new TitledBorder(new LineBorder(new Color(153, 102, 0), 2), "", 0, 0, new Font("Dialog", 1, 12), new Color(153, 102, 0)));
        balconL.setForeground(new Color(0, 0, 204));
        balconL.setHorizontalAlignment(0);
        balconL.setText("Balcon");
        exterieurP.add(balconL, new AbsoluteConstraints(10, 10, -1, 23));
        balconCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "1", "2", "3", ">3"
                }));
        exterieurP.add(balconCB, new AbsoluteConstraints(80, 10, 60, 23));
        surfaceBalconF.setEditable(false);
        surfaceBalconF.setHorizontalAlignment(4);
        surfaceBalconF.setText("0");
        exterieurP.add(surfaceBalconF, new AbsoluteConstraints(145, 10, 30, 23));
        jLabel9.setHorizontalAlignment(2);
        jLabel9.setText("m\262");
        exterieurP.add(jLabel9, new AbsoluteConstraints(176, 10, -1, 23));
        terrasseL.setForeground(new Color(0, 0, 204));
        terrasseL.setHorizontalAlignment(0);
        terrasseL.setText("Terrasse");
        exterieurP.add(terrasseL, new AbsoluteConstraints(10, 40, -1, 23));
        terrasseCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "1", "2", "3", ">3"
                }));
        exterieurP.add(terrasseCB, new AbsoluteConstraints(80, 40, 60, 23));
        surfaceTerrasseF.setEditable(false);
        surfaceTerrasseF.setHorizontalAlignment(4);
        surfaceTerrasseF.setText("0");
        exterieurP.add(surfaceTerrasseF, new AbsoluteConstraints(145, 40, 30, 23));
        jLabel10.setHorizontalAlignment(2);
        jLabel10.setText("m\262");
        exterieurP.add(jLabel10, new AbsoluteConstraints(176, 40, -1, 23));
        jardinL.setForeground(new Color(0, 0, 204));
        jardinL.setHorizontalAlignment(0);
        jardinL.setText("Jardin");
        exterieurP.add(jardinL, new AbsoluteConstraints(10, 70, -1, 23));
        jardinCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        exterieurP.add(jardinCB, new AbsoluteConstraints(80, 70, 60, 23));
        surfaceTerrainF.setEditable(false);
        surfaceTerrainF.setHorizontalAlignment(4);
        surfaceTerrainF.setText("0");
        exterieurP.add(surfaceTerrainF, new AbsoluteConstraints(145, 70, 30, 23));
        jLabel11.setHorizontalAlignment(2);
        jLabel11.setText("m\262");
        exterieurP.add(jLabel11, new AbsoluteConstraints(176, 70, -1, 23));
        piscineL.setForeground(new Color(0, 0, 204));
        piscineL.setHorizontalAlignment(0);
        piscineL.setText("Piscine");
        exterieurP.add(piscineL, new AbsoluteConstraints(10, 100, -1, 23));
        piscineCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui"
                }));
        exterieurP.add(piscineCB, new AbsoluteConstraints(80, 100, 60, 23));
        exterieurP.add(jLabel13, new AbsoluteConstraints(0, 0, -1, -1));
        jLabel12.setHorizontalAlignment(2);
        exterieurP.add(jLabel12, new AbsoluteConstraints(0, 0, -1, -1));
        parkingL.setForeground(new Color(0, 0, 204));
        parkingL.setHorizontalAlignment(0);
        parkingL.setText("Parking");
        exterieurP.add(parkingL, new AbsoluteConstraints(10, 130, -1, 23));
        parkingCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "EXT", "SSOL"
                }));
        exterieurP.add(parkingCB, new AbsoluteConstraints(80, 130, 60, 23));
        exterieurP.add(jLabel14, new AbsoluteConstraints(0, 0, -1, -1));
        jLabel15.setHorizontalAlignment(2);
        exterieurP.add(jLabel15, new AbsoluteConstraints(0, 0, -1, -1));
        garageL.setForeground(new Color(0, 0, 204));
        garageL.setHorizontalAlignment(0);
        garageL.setText("Garage");
        exterieurP.add(garageL, new AbsoluteConstraints(10, 160, -1, 23));
        garageCB.setModel(new DefaultComboBoxModel(new String[]{
                    "non", "oui", "EXT", "SSOL"
                }));
        exterieurP.add(garageCB, new AbsoluteConstraints(80, 160, 60, 23));
        surfaceGarageF.setEditable(false);
        surfaceGarageF.setHorizontalAlignment(4);
        surfaceGarageF.setText("0");
        exterieurP.add(surfaceGarageF, new AbsoluteConstraints(145, 160, 30, 23));
        vide.setHorizontalAlignment(2);
        vide.setText("m\262");
        exterieurP.add(vide, new AbsoluteConstraints(176, 160, -1, 23));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = 1;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        gridBagConstraints.insets = new Insets(2, 2, 2, 2);
        leftP.add(exterieurP, gridBagConstraints);
        jSplitPane1.setLeftComponent(leftP);
        rightP.setLayout(new BorderLayout());
        jSplitPane2.setBackground(new Color(142, 202, 251));
        jSplitPane2.setDividerLocation(400);
        jSplitPane2.setOrientation(0);
        jSplitPane2.setPreferredSize(new Dimension(125, 518));
        photosP.setLayout(new BorderLayout());
        diaporamaB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/wi/images/jaune.png")));
        diaporamaB.setText("Diaporama");
        diaporamaB.setToolTipText("lancer le diaporama");
        diaporamaB.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                diaporamaBActionPerformed(evt);
            }
        });
        commandeP.add(diaporamaB);
        photosP.add(commandeP, "North");
        photoP.setLayout(new GridBagLayout());
        photo1L.setHorizontalAlignment(0);
        photo1L.setToolTipText("PHOTO 1");
        photo1L.setBorder(new BevelBorder(1, Color.blue, Color.blue, Color.blue, Color.blue));
        photo1L.setPreferredSize(new Dimension(60, 150));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 17;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        photoP.add(photo1L, gridBagConstraints);
        photo2L.setHorizontalAlignment(0);
        photo2L.setToolTipText("PHOTO 2");
        photo2L.setBorder(new BevelBorder(1, Color.blue, Color.blue, Color.blue, Color.blue));
        photo2L.setPreferredSize(new Dimension(60, 150));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 17;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        photoP.add(photo2L, gridBagConstraints);
        photo3L.setHorizontalAlignment(0);
        photo3L.setToolTipText("PHOTO 3");
        photo3L.setBorder(new BevelBorder(1));
        photo3L.setPreferredSize(new Dimension(60, 150));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 17;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        photoP.add(photo3L, gridBagConstraints);
        photo4L.setHorizontalAlignment(0);
        photo4L.setToolTipText("PHOTO 4");
        photo4L.setBorder(new BevelBorder(1));
        photo4L.setPreferredSize(new Dimension(60, 150));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 17;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        photoP.add(photo4L, gridBagConstraints);
        photo5L.setHorizontalAlignment(0);
        photo5L.setToolTipText("PHOTO 5");
        photo5L.setBorder(new BevelBorder(1));
        photo5L.setPreferredSize(new Dimension(60, 150));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 17;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        photoP.add(photo5L, gridBagConstraints);
        photo1B.setForeground(new Color(0, 0, 204));
        photo1B.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        photo1B.setToolTipText(" Ins\351rer une photo visible sur internet");
        photo1B.setMargin(new Insets(2, 2, 2, 2));
        photo1B.setEnabled(false);
        photo1B.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo1BActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 13;
        photoP.add(photo1B, gridBagConstraints);
        photo1B1.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        photo1B1.setToolTipText("Supprimer une photo");
        photo1B1.setMargin(new Insets(2, 2, 2, 2));
        photo1B1.setEnabled(false);
        photo1B1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo1B1ActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = 17;
        photoP.add(photo1B1, gridBagConstraints);
        photo2B.setForeground(new Color(0, 0, 204));
        photo2B.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        photo2B.setToolTipText("Ins\351rer une photo visible sur internet");
        photo2B.setMargin(new Insets(2, 2, 2, 2));
        photo2B.setEnabled(false);
        photo2B.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo2BActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 13;
        photoP.add(photo2B, gridBagConstraints);
        photo2B1.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        photo2B1.setToolTipText("Supprimer une photo");
        photo2B1.setMargin(new Insets(2, 2, 2, 2));
        photo2B1.setEnabled(false);
        photo2B1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo2B1ActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = 17;
        photoP.add(photo2B1, gridBagConstraints);
        photo3B.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        photo3B.setToolTipText("Ins\351rer une photo");
        photo3B.setMargin(new Insets(2, 2, 2, 2));
        photo3B.setEnabled(false);
        photo3B.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo3BActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 13;
        photoP.add(photo3B, gridBagConstraints);
        photo3B1.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        photo3B1.setToolTipText("Supprimer une photo");
        photo3B1.setMargin(new Insets(2, 2, 2, 2));
        photo3B1.setEnabled(false);
        photo3B1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo3B1ActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.anchor = 17;
        photoP.add(photo3B1, gridBagConstraints);
        photo4B.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        photo4B.setToolTipText("Ins\351rer une photo");
        photo4B.setMargin(new Insets(2, 2, 2, 2));
        photo4B.setEnabled(false);
        photo4B.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo4BActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 13;
        photoP.add(photo4B, gridBagConstraints);
        photo4B1.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        photo4B1.setToolTipText("Supprimer une photo");
        photo4B1.setMargin(new Insets(2, 2, 2, 2));
        photo4B1.setEnabled(false);
        photo4B1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo4B1ActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.anchor = 17;
        photoP.add(photo4B1, gridBagConstraints);
        photo5B.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        photo5B.setToolTipText("Ins\351rer une photo");
        photo5B.setMargin(new Insets(2, 2, 2, 2));
        photo5B.setEnabled(false);
        photo5B.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo5BActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 13;
        photoP.add(photo5B, gridBagConstraints);
        photo5B1.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        photo5B1.setToolTipText("Supprimer une photo");
        photo5B1.setMargin(new Insets(2, 2, 2, 2));
        photo5B1.setEnabled(false);
        photo5B1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo5B1ActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.anchor = 17;
        photoP.add(photo5B1, gridBagConstraints);
        photo6L.setHorizontalAlignment(0);
        photo6L.setToolTipText("PHOTO 6");
        photo6L.setBorder(new BevelBorder(1));
        photo6L.setPreferredSize(new Dimension(60, 150));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 17;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        photoP.add(photo6L, gridBagConstraints);
        photo7L.setHorizontalAlignment(0);
        photo7L.setToolTipText("PHOTO 7");
        photo7L.setBorder(new BevelBorder(1));
        photo7L.setPreferredSize(new Dimension(60, 150));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 17;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        photoP.add(photo7L, gridBagConstraints);
        photo8L.setHorizontalAlignment(0);
        photo8L.setToolTipText("PHOTO 8");
        photo8L.setBorder(new BevelBorder(1));
        photo8L.setPreferredSize(new Dimension(60, 150));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 17;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        photoP.add(photo8L, gridBagConstraints);
        photo9L.setHorizontalAlignment(0);
        photo9L.setToolTipText("PHOTO 9");
        photo9L.setBorder(new BevelBorder(1));
        photo9L.setPreferredSize(new Dimension(60, 150));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 17;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        photoP.add(photo9L, gridBagConstraints);
        photo10L.setHorizontalAlignment(0);
        photo10L.setToolTipText("PHOTO 10");
        photo10L.setBorder(new BevelBorder(1));
        photo10L.setPreferredSize(new Dimension(60, 150));
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 17;
        gridBagConstraints.weightx = 1.0D;
        gridBagConstraints.weighty = 1.0D;
        photoP.add(photo10L, gridBagConstraints);
        photo6B.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        photo6B.setToolTipText("Ins\351rer une photo");
        photo6B.setMargin(new Insets(2, 2, 2, 2));
        photo6B.setEnabled(false);
        photo6B.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo6BActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 13;
        photoP.add(photo6B, gridBagConstraints);
        photo6B1.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        photo6B1.setToolTipText("Supprimer une photo");
        photo6B1.setMargin(new Insets(2, 2, 2, 2));
        photo6B1.setEnabled(false);
        photo6B1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo6B1ActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.anchor = 17;
        photoP.add(photo6B1, gridBagConstraints);
        photo7B.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        photo7B.setToolTipText("Ins\351rer une photo");
        photo7B.setMargin(new Insets(2, 2, 2, 2));
        photo7B.setEnabled(false);
        photo7B.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo7BActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 13;
        photoP.add(photo7B, gridBagConstraints);
        photo7B1.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        photo7B1.setToolTipText("Supprimer une photo");
        photo7B1.setMargin(new Insets(2, 2, 2, 2));
        photo7B1.setEnabled(false);
        photo7B1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo7B1ActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.anchor = 17;
        photoP.add(photo7B1, gridBagConstraints);
        photo8B.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        photo8B.setToolTipText("Ins\351rer une photo");
        photo8B.setMargin(new Insets(2, 2, 2, 2));
        photo8B.setEnabled(false);
        photo8B.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo8BActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 13;
        photoP.add(photo8B, gridBagConstraints);
        photo8B1.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        photo8B1.setToolTipText("Supprimer une photo");
        photo8B1.setMargin(new Insets(2, 2, 2, 2));
        photo8B1.setEnabled(false);
        photo8B1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo8B1ActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.anchor = 17;
        photoP.add(photo8B1, gridBagConstraints);
        photo9B.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        photo9B.setToolTipText("Ins\351rer une photo");
        photo9B.setMargin(new Insets(2, 2, 2, 2));
        photo9B.setEnabled(false);
        photo9B.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo9BActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 13;
        photoP.add(photo9B, gridBagConstraints);
        photo9B1.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        photo9B1.setToolTipText("Supprimer une photo");
        photo9B1.setMargin(new Insets(2, 2, 2, 2));
        photo9B1.setEnabled(false);
        photo9B1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo9B1ActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.anchor = 17;
        photoP.add(photo9B1, gridBagConstraints);
        photo10B.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        photo10B.setToolTipText("Ins\351rer une photo");
        photo10B.setMargin(new Insets(2, 2, 2, 2));
        photo10B.setEnabled(false);
        photo10B.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo10BActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.fill = 1;
        gridBagConstraints.anchor = 13;
        photoP.add(photo10B, gridBagConstraints);
        photo10B1.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        photo10B1.setToolTipText("Supprimer une photo");
        photo10B1.setMargin(new Insets(2, 2, 2, 2));
        photo10B1.setEnabled(false);
        photo10B1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                photo10B1ActionPerformed(evt);
            }
        });
        gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.anchor = 17;
        photoP.add(photo10B1, gridBagConstraints);
        photoSP.setViewportView(photoP);
        photosP.add(photoSP, "Center");
        jSplitPane2.setTopComponent(photosP);
        textP.setLayout(new BorderLayout());
        jTabbedPane1.setToolTipText("");
        descriptifTA.setColumns(10);
        descriptifTA.setFont(new Font("Dialog", 1, 12));
        descriptifTA.setForeground(new Color(0, 0, 204));
        descriptifTA.setLineWrap(true);
        descriptifTA.setRows(3);
        descriptifTA.setWrapStyleWord(true);
        descriptifSP.setViewportView(descriptifTA);
        jTabbedPane1.addTab("Internet", new ImageIcon(getClass().getResource("/org/jpgolay/wi/images/bleu.png")), descriptifSP, "Observations internet");
        observationTA.setColumns(10);
        observationTA.setFont(new Font("Dialog", 1, 12));
        observationTA.setForeground(new Color(204, 153, 0));
        observationTA.setLineWrap(true);
        observationTA.setRows(3);
        observationTA.setWrapStyleWord(true);
        observationSP.setViewportView(observationTA);
        jTabbedPane1.addTab("Confidentiel", new ImageIcon(getClass().getResource("/org/jpgolay/wi/images/orange.png")), observationSP, "Observation confidentiel");
        observationImprTA.setColumns(10);
        observationImprTA.setFont(new Font("Dialog", 1, 12));
        observationImprTA.setForeground(new Color(0, 153, 0));
        observationImprTA.setLineWrap(true);
        observationImprTA.setRows(3);
        observationImprTA.setWrapStyleWord(true);
        observationImprSP.setViewportView(observationImprTA);
        jTabbedPane1.addTab("Imprim\351e", new ImageIcon(getClass().getResource("/org/jpgolay/wi/images/vert.png")), observationImprSP, "Observations imprim\351e");
        textP.add(jTabbedPane1, "Center");
        jSplitPane2.setBottomComponent(textP);
        rightP.add(jSplitPane2, "Center");
        jSplitPane1.setRightComponent(rightP);
        jScrollPane1.setViewportView(jSplitPane1);
        jPanel2.add(jScrollPane1, "Center");
        getContentPane().add(jPanel2, "Center");
        options.setMnemonic('O');
        options.setText(ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("Options"));
        options.setToolTipText("");
        newMI.setAccelerator(KeyStroke.getKeyStroke(78, 2));
        newMI.setText(ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("new"));
        newMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/new.png")));
        newMI.setEnabled(false);
        options.add(newMI);
        openMI.setAccelerator(KeyStroke.getKeyStroke(79, 2));
        openMI.setText(ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("open"));
        openMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/open.png")));
        options.add(openMI);
        saveMI.setAccelerator(KeyStroke.getKeyStroke(83, 2));
        saveMI.setText(ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("save"));
        saveMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/save.png")));
        saveMI.setEnabled(false);
        options.add(saveMI);
        modifyMI.setAccelerator(KeyStroke.getKeyStroke(77, 2));
        modifyMI.setText(ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("modify"));
        modifyMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/modify.png")));
        modifyMI.setEnabled(false);
        options.add(modifyMI);
        deleteMI.setAccelerator(KeyStroke.getKeyStroke(88, 2));
        deleteMI.setText(ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("delete"));
        deleteMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/delete.png")));
        deleteMI.setEnabled(false);
        options.add(deleteMI);
        printMI.setAccelerator(KeyStroke.getKeyStroke(80, 2));
        printMI.setText(ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("print"));
        printMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/printer.png")));
        options.add(printMI);
        helpMI.setAccelerator(KeyStroke.getKeyStroke(112, 0));
        helpMI.setText(ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("help"));
        helpMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/help.png")));
        options.add(helpMI);
        jMenuBar1.add(options);
        setJMenuBar(jMenuBar1);
        pack();
    }

    private void departSouhaiterBActionPerformed(ActionEvent evt) {
        if (dateDisponibiliteDCB.isEnabled()) {
            dateDisponibiliteDCB.setModel(new DefaultComboBoxModel(new String[]{
                        (String) departSouhaiteDCB.getSelectedItem()
                    }));
        }
    }

    private void diaporamaBActionPerformed(ActionEvent evt) {
        startDiaporama();
    }

    private void photo1B1ActionPerformed(ActionEvent evt) {
        photo1 = null;
        photo1L.setIcon(null);
    }

    private void photo2B1ActionPerformed(ActionEvent evt) {
        photo2 = null;
        photo2L.setIcon(null);
    }

    private void photo3B1ActionPerformed(ActionEvent evt) {
        photo3 = null;
        photo3L.setIcon(null);
    }

    private void photo4B1ActionPerformed(ActionEvent evt) {
        photo4 = null;
        photo4L.setIcon(null);
    }

    private void photo5B1ActionPerformed(ActionEvent evt) {
        photo5 = null;
        photo5L.setIcon(null);
    }

    private void photo6B1ActionPerformed(ActionEvent evt) {
        photo6 = null;
        photo6L.setIcon(null);
    }

    private void photo7B1ActionPerformed(ActionEvent evt) {
        photo7 = null;
        photo7L.setIcon(null);
    }

    private void photo8B1ActionPerformed(ActionEvent evt) {
        photo8 = null;
        photo8L.setIcon(null);
    }

    private void photo9B1ActionPerformed(ActionEvent evt) {
        photo9 = null;
        photo9L.setIcon(null);
    }

    private void photo10B1ActionPerformed(ActionEvent evt) {
        photo10 = null;
        photo10L.setIcon(null);
    }

    private void photo1BActionPerformed(ActionEvent evt) {
        if (photoFileChooser()) {
            if ((photo1 = loadImage(selectedFile.getAbsolutePath())) == null) {
                JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("max_picrure_size"));
            } else {
                photo1L.setIcon(resizeImageIcon(new ImageIcon(photo1)));
            }
        } else {
            JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("dont_load_selected_picture"));
        }
    }

    private void photo2BActionPerformed(ActionEvent evt) {
        if (photoFileChooser()) {
            if ((photo2 = loadImage(selectedFile.getAbsolutePath())) == null) {
                JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("max_picrure_size"));
            } else {
                photo2L.setIcon(resizeImageIcon(new ImageIcon(photo2)));
            }
        } else {
            JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("dont_load_selected_picture"));
        }
    }

    private void photo3BActionPerformed(ActionEvent evt) {
        if (photoFileChooser()) {
            if ((photo3 = loadImage(selectedFile.getAbsolutePath())) == null) {
                JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("max_picrure_size"));
            } else {
                photo3L.setIcon(resizeImageIcon(new ImageIcon(photo3)));
            }
        } else {
            JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("dont_load_selected_picture"));
        }
    }

    private void photo4BActionPerformed(ActionEvent evt) {
        if (photoFileChooser()) {
            if ((photo4 = loadImage(selectedFile.getAbsolutePath())) == null) {
                JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("max_picrure_size"));
            } else {
                photo4L.setIcon(resizeImageIcon(new ImageIcon(photo4)));
            }
        } else {
            JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("dont_load_selected_picture"));
        }
    }

    private void photo5BActionPerformed(ActionEvent evt) {
        if (photoFileChooser()) {
            if ((photo5 = loadImage(selectedFile.getAbsolutePath())) == null) {
                JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("max_picrure_size"));
            } else {
                photo5L.setIcon(resizeImageIcon(new ImageIcon(photo5)));
            }
        } else {
            JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("dont_load_selected_picture"));
        }
    }

    private void photo6BActionPerformed(ActionEvent evt) {
        if (photoFileChooser()) {
            if ((photo6 = loadImage(selectedFile.getAbsolutePath())) == null) {
                JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("max_picrure_size"));
            } else {
                photo6L.setIcon(resizeImageIcon(new ImageIcon(photo6)));
            }
        } else {
            JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("dont_load_selected_picture"));
        }
    }

    private void photo7BActionPerformed(ActionEvent evt) {
        if (photoFileChooser()) {
            if ((photo7 = loadImage(selectedFile.getAbsolutePath())) == null) {
                JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("max_picrure_size"));
            } else {
                photo7L.setIcon(resizeImageIcon(new ImageIcon(photo7)));
            }
        } else {
            JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("dont_load_selected_picture"));
        }
    }

    private void photo8BActionPerformed(ActionEvent evt) {
        if (photoFileChooser()) {
            if ((photo8 = loadImage(selectedFile.getAbsolutePath())) == null) {
                JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("max_picrure_size"));
            } else {
                photo8L.setIcon(resizeImageIcon(new ImageIcon(photo8)));
            }
        } else {
            JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("dont_load_selected_picture"));
        }
    }

    private void photo9BActionPerformed(ActionEvent evt) {
        if (photoFileChooser()) {
            if ((photo9 = loadImage(selectedFile.getAbsolutePath())) == null) {
                JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("max_picrure_size"));
            } else {
                photo9L.setIcon(resizeImageIcon(new ImageIcon(photo9)));
            }
        } else {
            JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("dont_load_selected_picture"));
        }
    }

    private void photo10BActionPerformed(ActionEvent evt) {
        if (photoFileChooser()) {
            if ((photo10 = loadImage(selectedFile.getAbsolutePath())) == null) {
                JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("max_picrure_size"));
            } else {
                photo10L.setIcon(resizeImageIcon(new ImageIcon(photo10)));
            }
        } else {
            JOptionPane.showMessageDialog(this, ResourceBundle.getBundle("org/jpgolay/wi/wii").getString("dont_load_selected_picture"));
        }
    }

    private ImageIcon resizeImageIcon(ImageIcon tmpIcon) {
        if (tmpIcon.getIconWidth() > photo1L.getWidth()) {
            return new ImageIcon(tmpIcon.getImage().getScaledInstance(photo1L.getWidth(), -1, 1));
        } else {
            return tmpIcon;
        }
    }

    private boolean photoFileChooser() {
        if (fileChooser == null) {
            fileChooser = new JFileChooser();
            fileChooser.addChoosableFileFilter(new ImageFilter());
            fileChooser.setAcceptAllFileFilterUsed(false);
            fileChooser.setAccessory(new ImagePreview(fileChooser));
        }
        int result = fileChooser.showOpenDialog(this);
        if (result == 0) {
            selectedFile = fileChooser.getSelectedFile();
            return true;
        } else {
            return false;
        }
    }

    private void startDiaporama() {
        Vector pv = photosValide();
        if (pv.size() > 0) {
            Object list[] = new Object[pv.size()];
            for (int i = 0; i < pv.size(); i++) {
                list[i] = (byte[]) pv.get(i);
            }

            screen = Toolkit.getDefaultToolkit().getScreenSize();
            SlideShow ss = new SlideShow();
            ss.setBounds(screen.width / 2 - 300, screen.height / 2 - 280, 600, 500);
            ss.setVisible(true);
            ss.setImages(list);
            ss.start();
        } else {
            JOptionPane.showMessageDialog(this, "Aucune photo dans cette fiche !");
        }
    }

    private Vector photosValide() {
        Vector v = new Vector();
        Object photo[] = {
            photo1, photo2, photo3, photo4, photo5, photo6, photo7, photo8, photo9, photo10
        };
        for (int i = 0; i < 10; i++) {
            if (photo[i] != null) {
                v.addElement(photo[i]);
            }
        }

        return v;
    }

    private byte[] loadImage(String path) {
        try {
            File f = new File(path);
            int len = (int) f.length();
            byte b[] = new byte[len];
            FileInputStream fin = new FileInputStream(f);
            for (int offset = 0; offset < len; offset += fin.read(b, offset, len - offset));
            fin.close();
            if (b.length > 55000) {
                b = (byte[]) null;
            }
            return b;
        } catch (IOException e) {
            return null;
        }
    }

    public void initContents() {
        WIDate d = new WIDate();
        adresse1F.setText("");
        adresse2F.setText("");
        ascenseurCB.setSelectedIndex(0);
        balconCB.setSelectedIndex(0);
        categorieCB.setSelectedIndex(0);
        cautionF.setText("0.00");
        caveCB.setSelectedIndex(0);
        chambreCB.setSelectedIndex(0);
        chargesF.setText("0.00");
        chauffageCB.setSelectedIndex(0);
        chemineeCB.setSelectedIndex(0);
        clefCB.setSelectedIndex(0);
        clientF.setText("");
        codePostalF.setText("");
        communeF.setText("");
        cuisineCB.setSelectedIndex(0);
        dateCreationDCB.setModel(new DefaultComboBoxModel(new String[]{
                    d.getPlain()
                }));
        dateDisponibiliteDCB.setModel(new DefaultComboBoxModel(new String[]{
                    d.getPlain()
                }));
        departAccepteDCB.setModel(new DefaultComboBoxModel(new String[]{
                    ""
                }));
        departSouhaiteDCB.setModel(new DefaultComboBoxModel(new String[]{
                    ""
                }));
        descriptifTA.setText("");
        doucheCB.setSelectedIndex(0);
        etageCB.setSelectedIndex(0);
        etatCB.setSelectedIndex(0);
        expositionCB.setSelectedIndex(0);
        ficheIdF.setText("");
        fraisAgenceF.setText("0.00");
        garageCB.setSelectedIndex(0);
        genreCB.setSelectedIndex(0);
        hallCB.setSelectedIndex(0);
        jardinCB.setSelectedIndex(0);
        loggiaCB.setSelectedIndex(0);
        lotF.setText("");
        meubleCB.setSelectedIndex(0);
        mezzanineCB.setSelectedIndex(0);
        observationTA.setText("");
        observationImprTA.setText("");
        optionCB.setSelectedIndex(0);
        optionFiscCB.setSelectedIndex(0);
        panneauF.setText("");
        parkingCB.setSelectedIndex(0);
        piscineCB.setSelectedIndex(0);
        placardCB.setSelectedIndex(0);
        prixLoyerF.setText("0.00");
        prixVenteF.setText("0.00");
        provChargeF.setText("0.00");
        photo1L.setIcon(null);
        photo2L.setIcon(null);
        photo3L.setIcon(null);
        photo4L.setIcon(null);
        photo5L.setIcon(null);
        photo6L.setIcon(null);
        photo7L.setIcon(null);
        photo8L.setIcon(null);
        photo9L.setIcon(null);
        photo10L.setIcon(null);
        photo1 = null;
        photo2 = null;
        photo3 = null;
        photo4 = null;
        photo5 = null;
        photo6 = null;
        photo7 = null;
        photo8 = null;
        photo9 = null;
        photo10 = null;
        quartierF.setText("");
        reserveDCB.setModel(new DefaultComboBoxModel(new String[]{
                    ""
                }));
        residanceF.setText("");
        internalIdF.setText("");
        salleBainCB.setSelectedIndex(0);
        secteurCB.setSelectedIndex(0);
        sejourCB.setSelectedIndex(0);
        solCB.setSelectedIndex(0);
        sortantTA.setText("");
        standingCB.setSelectedIndex(0);
        surfaceHabitableF.setText("0");
        surfaceTerrainF.setText("0");
        surfaceCuisineF.setText("0");
        surfaceBalconF.setText("0");
        surfaceGarageF.setText("0");
        surfaceSejourF.setText("0");
        surfaceHallF.setText("0");
        surfaceTerrasseF.setText("0");
        surfaceMezzanineF.setText("0");
        surfaceLoggiaF.setText("0");
        surfaceChambreF.setText("0");
        surfaceCaveF.setText("0");
        surfaceCellierF.setText("0");
        terrasseCB.setSelectedIndex(0);
        typeCB.setSelectedIndex(0);
        viagerCB.setSelectedIndex(0);
        visibiliteCB.setSelectedIndex(0);
        wcCB.setSelectedIndex(0);
        litCB.setSelectedIndex(0);
        tvCB.setSelectedIndex(0);
        archiveFalseRB.setSelected(true);
        mursCB.setSelectedIndex(0);
    }

    public void setEditable(boolean v) {
        adresse1F.setEditable(v);
        adresse2F.setEditable(v);
        cautionF.setEditable(v);
        chargesF.setEditable(v);
        clientF.setEditable(v);
        codePostalF.setEditable(v);
        communeF.setEditable(v);
        dateCreationDCB.setEnabled(v);
        dateCreationDCB.setEditable(v);
        dateDisponibiliteDCB.setEnabled(v);
        dateDisponibiliteDCB.setEditable(v);
        departAccepteDCB.setEnabled(v);
        departAccepteDCB.setEditable(v);
        departSouhaiteDCB.setEnabled(v);
        departSouhaiteDCB.setEditable(v);
        descriptifTA.setEditable(v);
        fraisAgenceF.setEditable(v);
        lotF.setEditable(v);
        observationTA.setEditable(v);
        observationImprTA.setEditable(v);
        panneauF.setEditable(v);
        photo1B.setEnabled(v);
        photo1B1.setEnabled(v);
        photo2B.setEnabled(v);
        photo2B1.setEnabled(v);
        photo3B.setEnabled(v);
        photo3B1.setEnabled(v);
        photo4B.setEnabled(v);
        photo4B1.setEnabled(v);
        photo5B.setEnabled(v);
        photo5B1.setEnabled(v);
        photo6B.setEnabled(v);
        photo6B1.setEnabled(v);
        photo7B.setEnabled(v);
        photo7B1.setEnabled(v);
        photo8B.setEnabled(v);
        photo8B1.setEnabled(v);
        photo9B.setEnabled(v);
        photo9B1.setEnabled(v);
        photo10B.setEnabled(v);
        photo10B1.setEnabled(v);
        prixLoyerF.setEditable(v);
        prixVenteF.setEditable(v);
        provChargeF.setEditable(v);
        quartierF.setEditable(v);
        reserveDCB.setEnabled(v);
        reserveDCB.setEditable(v);
        residanceF.setEditable(v);
        internalIdF.setEditable(v);
        sortantTA.setEditable(v);
        surfaceHabitableF.setEditable(v);
        surfaceTerrainF.setEditable(v);
        surfaceCuisineF.setEditable(v);
        surfaceBalconF.setEditable(v);
        surfaceGarageF.setEditable(v);
        surfaceSejourF.setEditable(v);
        surfaceHallF.setEditable(v);
        surfaceTerrasseF.setEditable(v);
        surfaceMezzanineF.setEditable(v);
        surfaceLoggiaF.setEditable(v);
        surfaceChambreF.setEditable(v);
        surfaceCaveF.setEditable(v);
        surfaceCellierF.setEditable(v);
    }

    public void setEditableFicheIdFalse() {
        ficheIdF.setEditable(false);
    }

    public String getAdresse1() {
        return adresse1F.getText();
    }

    public void setAdresse1(String adresse) {
        adresse1F.setText(adresse);
    }

    public String getAdresse2() {
        return adresse2F.getText();
    }

    public void setAdresse2(String adresse) {
        adresse2F.setText(adresse);
    }

    public String getAscenseur() {
        return (String) ascenseurCB.getSelectedItem();
    }

    public void setAscenseur(String ascenseur) {
        ascenseurCB.setSelectedItem(ascenseur);
    }

    public String getBalcon() {
        return (String) balconCB.getSelectedItem();
    }

    public void setBalcon(String balcon) {
        balconCB.setSelectedItem(balcon);
    }

    public String getCategorie() {
        return (String) categorieCB.getSelectedItem();
    }

    public void setCategorie(String categorie) {
        categorieCB.setSelectedItem(categorie);
    }

    public String getCaution() {
        return cautionF.getText();
    }

    public void setCaution(String caution) {
        cautionF.setText(caution);
    }

    public String getCave() {
        return (String) caveCB.getSelectedItem();
    }

    public void setCave(String cave) {
        caveCB.setSelectedItem(cave);
    }

    public String getChambre() {
        return (String) chambreCB.getSelectedItem();
    }

    public void setChambre(String chambre) {
        chambreCB.setSelectedItem(chambre);
    }

    public String getCharges() {
        return chargesF.getText();
    }

    public void setCharges(String charges) {
        chargesF.setText(charges);
    }

    public String getChauffage() {
        return (String) chauffageCB.getSelectedItem();
    }

    public void setChauffage(String chauffage) {
        chauffageCB.setSelectedItem(chauffage);
    }

    public String getCheminee() {
        return (String) chemineeCB.getSelectedItem();
    }

    public void setCheminee(String cheminee) {
        chemineeCB.setSelectedItem(cheminee);
    }

    public String getClef() {
        return (String) clefCB.getSelectedItem();
    }

    public void setClef(String clef) {
        clefCB.setSelectedItem(clef);
    }

    public String getClient() {
        return clientF.getText();
    }

    public void setClient(String client) {
        clientF.setText(client);
    }

    public String getCodePostal() {
        return codePostalF.getText();
    }

    public void setCodePostal(String codePostal) {
        codePostalF.setText(codePostal);
    }

    public String getCommune() {
        return communeF.getText();
    }

    public void setCommune(String commune) {
        communeF.setText(commune);
    }

    public String getCuisine() {
        return (String) cuisineCB.getSelectedItem();
    }

    public void setCuisine(String cuisine) {
        cuisineCB.setSelectedItem(cuisine);
    }

    public String getDateCreation() {
        return (String) dateCreationDCB.getSelectedItem();
    }

    public void setDateCreation(String dateCreation) {
        dateCreationDCB.setModel(new DefaultComboBoxModel(new String[]{
                    dateCreation
                }));
    }

    public String getDateDispo() {
        return (String) dateDisponibiliteDCB.getSelectedItem();
    }

    public void setDateDispo(String dateDisponibilite) {
        dateDisponibiliteDCB.setModel(new DefaultComboBoxModel(new String[]{
                    dateDisponibilite
                }));
    }

    public String getDepartAccepte() {
        return (String) departAccepteDCB.getSelectedItem();
    }

    public void setDepartAccepte(String departAccepte) {
        departAccepteDCB.setModel(new DefaultComboBoxModel(new String[]{
                    departAccepte
                }));
    }

    public String getDepartSouhaite() {
        return (String) departSouhaiteDCB.getSelectedItem();
    }

    public void setDepartSouhaite(String departSouhaite) {
        departSouhaiteDCB.setModel(new DefaultComboBoxModel(new String[]{
                    departSouhaite
                }));
    }

    public String getDescriptif() {
        return descriptifTA.getText();
    }

    public void setDescriptif(String descriptif) {
        descriptifTA.setText(descriptif);
    }

    public String getDouche() {
        return (String) doucheCB.getSelectedItem();
    }

    public void setDouche(String douche) {
        doucheCB.setSelectedItem(douche);
    }

    public String getEtage() {
        return (String) etageCB.getSelectedItem();
    }

    public void setEtage(String etage) {
        etageCB.setSelectedItem(etage);
    }

    public String getEtat() {
        return (String) etatCB.getSelectedItem();
    }

    public void setEtat(String etat) {
        etatCB.setSelectedItem(etat);
    }

    public String getExposition() {
        return (String) expositionCB.getSelectedItem();
    }

    public void setExposition(String exposition) {
        expositionCB.setSelectedItem(exposition);
    }

    public String getId() {
        return ficheIdF.getText();
    }

    public void setId(String ficheId) {
        ficheIdF.setText(ficheId);
    }

    public String getInternalId() {
        return internalIdF.getText();
    }

    public void setInternalId(String internalId) {
        internalIdF.setText(internalId);
    }

    public String getFraisAgence() {
        return fraisAgenceF.getText();
    }

    public void setFraisAgence(String fraisAgence) {
        fraisAgenceF.setText(fraisAgence);
    }

    public String getGarage() {
        return (String) garageCB.getSelectedItem();
    }

    public void setGarage(String garage) {
        garageCB.setSelectedItem(garage);
    }

    public String getGenre() {
        return (String) genreCB.getSelectedItem();
    }

    public void setGenre(String genre) {
        genreCB.setSelectedItem(genre);
    }

    public String getHall() {
        return (String) hallCB.getSelectedItem();
    }

    public void setHall(String hall) {
        hallCB.setSelectedItem(hall);
    }

    public String getJardin() {
        return (String) jardinCB.getSelectedItem();
    }

    public void setJardin(String jardin) {
        jardinCB.setSelectedItem(jardin);
    }

    public String getLoggia() {
        return (String) loggiaCB.getSelectedItem();
    }

    public void setLoggia(String loggia) {
        loggiaCB.setSelectedItem(loggia);
    }

    public String getLot() {
        return lotF.getText();
    }

    public void setLot(String lot) {
        lotF.setText(lot);
    }

    public String getMeuble() {
        return (String) meubleCB.getSelectedItem();
    }

    public void setMeuble(String meuble) {
        meubleCB.setSelectedItem(meuble);
    }

    public String getMezzanine() {
        return (String) mezzanineCB.getSelectedItem();
    }

    public void setMezzanine(String mezzanine) {
        mezzanineCB.setSelectedItem(mezzanine);
    }

    public String getObservation() {
        return observationTA.getText();
    }

    public void setObservation(String observation) {
        observationTA.setText(observation);
    }

    public String getObservationImprimee() {
        return observationImprTA.getText();
    }

    public void setObservationImprimee(String observationImpr) {
        observationImprTA.setText(observationImpr);
    }

    public JMenuItem getOpen() {
        return openMI;
    }

    public String getOptions() {
        return (String) optionCB.getSelectedItem();
    }

    public void setOptions(String option) {
        optionCB.setSelectedItem(option);
    }

    public String getOptionFisc() {
        return (String) optionFiscCB.getSelectedItem();
    }

    public void setOptionFisc(String optionFisc) {
        optionFiscCB.setSelectedItem(optionFisc);
    }

    public String getPanneau() {
        return panneauF.getText();
    }

    public void setPanneau(String panneau) {
        panneauF.setText(panneau);
    }

    public String getParking() {
        return (String) parkingCB.getSelectedItem();
    }

    public void setParking(String parking) {
        parkingCB.setSelectedItem(parking);
    }

    public String getPiscine() {
        return (String) piscineCB.getSelectedItem();
    }

    public void setPiscine(String piscine) {
        piscineCB.setSelectedItem(piscine);
    }

    public String getPlacard() {
        return (String) placardCB.getSelectedItem();
    }

    public void setPlacard(String placard) {
        placardCB.setSelectedItem(placard);
    }

    public String getPrixLoyer() {
        return prixLoyerF.getText();
    }

    public void setPrixLoyer(String prixLoyer) {
        prixLoyerF.setText(prixLoyer);
    }

    public String getPrixVente() {
        return prixVenteF.getText();
    }

    public void setPrixVente(String prixVente) {
        prixVenteF.setText(prixVente);
    }

    public String getProvisionCharge() {
        return provChargeF.getText();
    }

    public void setProvisionCharge(String provCharge) {
        provChargeF.setText(provCharge);
    }

    public String getQuartier() {
        return quartierF.getText();
    }

    public void setQuartier(String quartier) {
        quartierF.setText(quartier);
    }

    public String getReserve() {
        return (String) reserveDCB.getSelectedItem();
    }

    public void setReserve(String reserve) {
        reserveDCB.setModel(new DefaultComboBoxModel(new String[]{
                    reserve
                }));
    }

    public String getResidance() {
        return residanceF.getText();
    }

    public void setResidance(String residance) {
        residanceF.setText(residance);
    }

    public String getSalleBain() {
        return (String) salleBainCB.getSelectedItem();
    }

    public void setSalleBain(String salleBain) {
        salleBainCB.setSelectedItem(salleBain);
    }

    public String getSecteur() {
        return (String) secteurCB.getSelectedItem();
    }

    public void setSecteur(String secteur) {
        secteurCB.setSelectedItem(secteur);
    }

    public String getSejour() {
        return (String) sejourCB.getSelectedItem();
    }

    public void setSejour(String sejour) {
        sejourCB.setSelectedItem(sejour);
    }

    public String getSol() {
        return (String) solCB.getSelectedItem();
    }

    public void setSol(String sol) {
        solCB.setSelectedItem(sol);
    }

    public String getSortant() {
        return sortantTA.getText();
    }

    public void setSortant(String sortant) {
        sortantTA.setText(sortant);
    }

    public String getStanding() {
        return (String) standingCB.getSelectedItem();
    }

    public void setStanding(String standing) {
        standingCB.setSelectedItem(standing);
    }

    public String getSurfaceHabitable() {
        return surfaceHabitableF.getText();
    }

    public void setSurfaceHabitable(String surfaceHabitable) {
        surfaceHabitableF.setText(surfaceHabitable);
    }

    public String getSurfaceTerrain() {
        return surfaceTerrainF.getText();
    }

    public void setSurfaceTerrain(String surfaceTerrain) {
        surfaceTerrainF.setText(surfaceTerrain);
    }

    public String getTerrasse() {
        return (String) terrasseCB.getSelectedItem();
    }

    public void setTerrasse(String terrasse) {
        terrasseCB.setSelectedItem(terrasse);
    }

    public String getType() {
        return (String) typeCB.getSelectedItem();
    }

    public void setType(String type) {
        typeCB.setSelectedItem(type);
    }

    public String getViager() {
        return (String) viagerCB.getSelectedItem();
    }

    public void setViager(String viager) {
        viagerCB.setSelectedItem(viager);
    }

    public String getVisibilite() {
        return (String) visibiliteCB.getSelectedItem();
    }

    public void setVisibilite(String visibilite) {
        visibiliteCB.setSelectedItem(visibilite);
    }

    public String getWc() {
        return (String) wcCB.getSelectedItem();
    }

    public void setWc(String wc) {
        wcCB.setSelectedItem(wc);
    }

    public IconBar getIconBar() {
        return iconBar1;
    }

    public byte[] getPhoto1() {
        return photo1;
    }

    public void setPhoto1(byte photo1[]) {
        this.photo1 = photo1;
        if (photo1 != null) {
            photo1L.setIcon(resizeImageIcon(new ImageIcon(photo1)));
        }
    }

    public byte[] getPhoto2() {
        return photo2;
    }

    public void setPhoto2(byte photo2[]) {
        this.photo2 = photo2;
        if (photo2 != null) {
            photo2L.setIcon(resizeImageIcon(new ImageIcon(photo2)));
        }
    }

    public byte[] getPhoto3() {
        return photo3;
    }

    public void setPhoto3(byte photo3[]) {
        this.photo3 = photo3;
        if (photo3 != null) {
            photo3L.setIcon(resizeImageIcon(new ImageIcon(photo3)));
        }
    }

    public byte[] getPhoto4() {
        return photo4;
    }

    public void setPhoto4(byte photo4[]) {
        this.photo4 = photo4;
        if (photo4 != null) {
            photo4L.setIcon(resizeImageIcon(new ImageIcon(photo4)));
        }
    }

    public byte[] getPhoto5() {
        return photo5;
    }

    public void setPhoto5(byte photo5[]) {
        this.photo5 = photo5;
        if (photo5 != null) {
            photo5L.setIcon(resizeImageIcon(new ImageIcon(photo5)));
        }
    }

    public byte[] getPhoto6() {
        return photo6;
    }

    public void setPhoto6(byte photo6[]) {
        this.photo6 = photo6;
        if (photo6 != null) {
            photo6L.setIcon(resizeImageIcon(new ImageIcon(photo6)));
        }
    }

    public byte[] getPhoto7() {
        return photo7;
    }

    public void setPhoto7(byte photo7[]) {
        this.photo7 = photo7;
        if (photo7 != null) {
            photo7L.setIcon(resizeImageIcon(new ImageIcon(photo7)));
        }
    }

    public byte[] getPhoto8() {
        return photo8;
    }

    public void setPhoto8(byte photo8[]) {
        this.photo8 = photo8;
        if (photo8 != null) {
            photo8L.setIcon(resizeImageIcon(new ImageIcon(photo8)));
        }
    }

    public byte[] getPhoto9() {
        return photo9;
    }

    public void setPhoto9(byte photo9[]) {
        this.photo9 = photo9;
        if (photo9 != null) {
            photo9L.setIcon(resizeImageIcon(new ImageIcon(photo9)));
        }
    }

    public byte[] getPhoto10() {
        return photo10;
    }

    public void setPhoto10(byte photo10[]) {
        this.photo10 = photo10;
        if (photo10 != null) {
            photo10L.setIcon(resizeImageIcon(new ImageIcon(photo10)));
        }
    }

    public String getTv() {
        return (String) tvCB.getSelectedItem();
    }

    public void setTv(String tv) {
        tvCB.setSelectedItem(tv);
    }

    public String getLit() {
        return (String) litCB.getSelectedItem();
    }

    public void setLit(String lit) {
        litCB.setSelectedItem(lit);
    }

    public String getSurfaceBalcon() {
        return surfaceBalconF.getText();
    }

    public String getSurfaceCave() {
        return surfaceCaveF.getText();
    }

    public String getSurfaceChambre() {
        return surfaceChambreF.getText();
    }

    public String getSurfaceCuisine() {
        return surfaceCuisineF.getText();
    }

    public String getSurfaceGarage() {
        return surfaceGarageF.getText();
    }

    public String getSurfaceHall() {
        return surfaceHallF.getText();
    }

    public String getSurfaceLoggia() {
        return surfaceLoggiaF.getText();
    }

    public String getSurfaceMezzanine() {
        return surfaceMezzanineF.getText();
    }

    public String getSurfaceSejour() {
        return surfaceSejourF.getText();
    }

    public String getSurfaceTerrasse() {
        return surfaceTerrasseF.getText();
    }

    public void setSurfaceBalcon(String surfaceBalcon) {
        surfaceBalconF.setText(surfaceBalcon);
    }

    public void setSurfaceCave(String surfaceCave) {
        surfaceCaveF.setText(surfaceCave);
    }

    public void setSurfaceChambre(String surfaceChambre) {
        surfaceChambreF.setText(surfaceChambre);
    }

    public void setSurfaceCuisine(String surfaceCuisine) {
        surfaceCuisineF.setText(surfaceCuisine);
    }

    public void setSurfaceGarage(String surfaceGarage) {
        surfaceGarageF.setText(surfaceGarage);
    }

    public void setSurfaceHall(String surfaceHall) {
        surfaceHallF.setText(surfaceHall);
    }

    public void setSurfaceLoggia(String surfaceLoggia) {
        surfaceLoggiaF.setText(surfaceLoggia);
    }

    public void setSurfaceMezzanine(String surfaceMezzanine) {
        surfaceMezzanineF.setText(surfaceMezzanine);
    }

    public void setSurfaceSejour(String surfaceSejour) {
        surfaceSejourF.setText(surfaceSejour);
    }

    public void setSurfaceTerrasse(String surfaceTerrasse) {
        surfaceTerrasseF.setText(surfaceTerrasse);
    }

    public String getSurfaceCellier() {
        return surfaceCellierF.getText();
    }

    public void setSurfaceCellier(String surfaceCellier) {
        surfaceCellierF.setText(surfaceCellier);
    }

    public String getCellier() {
        return (String) cellierCB.getSelectedItem();
    }

    public void setCellier(String cellier) {
        cellierCB.setSelectedItem(cellier);
    }

    public String getMurs() {
        return (String) mursCB.getSelectedItem();
    }

    public void setMurs(String murs) {
        mursCB.setSelectedItem(murs);
    }

    public String getDuplex() {
        return (String) duplexCB.getSelectedItem();
    }

    public void setDuplex(String duplex) {
        duplexCB.setSelectedItem(duplex);
    }

    public String getArchive() {
        if (archiveTrueRB.isSelected()) {
            return "T";
        } else {
            return "F";
        }
    }

    public void setArchive(String archive) {
        if (archive.equals("T")) {
            archiveTrueRB.setSelected(true);
        } else {
            archiveFalseRB.setSelected(true);
        }
    }

    public JMenuItem getHelpMI() {
        return helpMI;
    }

    public JMenuItem getModifyMI() {
        return modifyMI;
    }

    public JMenuItem getNewMI() {
        return newMI;
    }

    public JMenuItem getPrintMI() {
        return printMI;
    }

    public JMenuItem getDeleteMI() {
        return deleteMI;
    }

    public JMenuItem getOpenMI() {
        return openMI;
    }

    public JMenuItem getSaveMI() {
        return saveMI;
    }
    private JPanel addressP;
    private JTextField adresse1F;
    private JLabel adresse1L;
    private JTextField adresse2F;
    private JLabel adresse2L;
    private JInternalFrame adresseJF;
    private JRadioButton archiveFalseRB;
    private JPanel archiveP;
    private JRadioButton archiveTrueRB;
    private JComboBox ascenseurCB;
    private JLabel ascenseurL;
    private JComboBox balconCB;
    private JLabel balconL;
    private ButtonGroup buttonGroup1;
    private JComboBox categorieCB;
    private JLabel categorieL;
    private JTextField cautionF;
    private JLabel cautionL;
    private JComboBox caveCB;
    private JLabel caveL;
    private JComboBox cellierCB;
    private JLabel cellierL;
    private JComboBox chambreCB;
    private JLabel chambreL;
    private JTextField chargesF;
    private JLabel chargesL;
    private JComboBox chauffageCB;
    private JLabel chauffageL;
    private JComboBox chemineeCB;
    private JLabel chemineeL;
    private JComboBox clefCB;
    private JLabel clefL;
    private JTextField clientF;
    private JLabel clientL;
    private JTextField codePostalF;
    private JLabel codePostalL;
    private JPanel commandeP;
    private JTextField communeF;
    private JLabel communeL;
    private JInternalFrame comptaJF;
    private JPanel comptabiliteP;
    private JComboBox cuisineCB;
    private JLabel cuisineL;
    private DateComboBox dateCreationDCB;
    private JLabel dateCreationL;
    private DateComboBox dateDisponibiliteDCB;
    private JLabel dateDisponibiliteL;
    private JMenuItem deleteMI;
    private DateComboBox departAccepteDCB;
    private JLabel departAccepteL;
    private DateComboBox departSouhaiteDCB;
    private JButton departSouhaiterB;
    private JScrollPane descriptifSP;
    private JTextArea descriptifTA;
    private JButton diaporamaB;
    private JPanel disponibiliteP;
    private JComboBox doucheCB;
    private JLabel doucheL;
    private JComboBox duplexCB;
    private JLabel duplexL;
    private JPanel equipementsP;
    private JComboBox etageCB;
    private JLabel etageL;
    private JComboBox etatCB;
    private JLabel etatL;
    private JComboBox expositionCB;
    private JLabel expositionL;
    private JPanel exterieurP;
    private JTextField ficheIdF;
    private JLabel ficheIdL;
    private JPanel ficheP;
    private JTextField fraisAgenceF;
    private JLabel fraisAgenceL;
    private JComboBox garageCB;
    private JLabel garageL;
    private JComboBox genreCB;
    private JLabel genreL;
    private JComboBox hallCB;
    private JLabel hallL;
    private JMenuItem helpMI;
    private IconBar iconBar1;
    private JDesktopPane jDesktopPane1;
    private JLabel jLabel1;
    private JLabel jLabel10;
    private JLabel jLabel11;
    private JLabel jLabel12;
    private JLabel jLabel13;
    private JLabel jLabel14;
    private JLabel jLabel15;
    private JLabel jLabel17;
    private JLabel jLabel18;
    private JLabel jLabel2;
    private JLabel jLabel3;
    private JLabel jLabel4;
    private JLabel jLabel5;
    private JLabel jLabel6;
    private JLabel jLabel7;
    private JLabel jLabel8;
    private JLabel jLabel9;
    private JMenuBar jMenuBar1;
    private JPanel jPanel2;
    private JScrollPane jScrollPane1;
    private JTabbedPane jTabbedPane1;
    private JTextField surfaceCellierF;
    private JToolBar jToolBar1;
    private JComboBox jardinCB;
    private JLabel jardinL;
    private JPanel photoP;
    private JComboBox litCB;
    private JLabel litL;
    private JComboBox loggiaCB;
    private JLabel loggiaL;
    private JTextField lotF;
    private JLabel lotL;
    private JComboBox meubleCB;
    private JLabel meubleL;
    private JComboBox mezzanineCB;
    private JLabel mezzanineL;
    private JMenuItem modifyMI;
    private JComboBox mursCB;
    private JLabel mursL;
    private JMenuItem newMI;
    private JScrollPane observationImprSP;
    private JTextArea observationImprTA;
    private JScrollPane observationSP;
    private JTextArea observationTA;
    private JMenuItem openMI;
    private JComboBox optionCB;
    private JComboBox optionFiscCB;
    private JLabel optionFiscL;
    private JLabel optionL;
    private JMenu options;
    private JTextField panneauF;
    private JLabel panneauL;
    private JComboBox parkingCB;
    private JLabel parkingL;
    private JButton photo10B;
    private JButton photo10B1;
    private JLabel photo10L;
    private JButton photo1B;
    private JButton photo1B1;
    private JLabel photo1L;
    private JButton photo2B;
    private JButton photo2B1;
    private JLabel photo2L;
    private JButton photo3B;
    private JButton photo3B1;
    private JLabel photo3L;
    private JButton photo4B;
    private JButton photo4B1;
    private JLabel photo4L;
    private JButton photo5B;
    private JButton photo5B1;
    private JLabel photo5L;
    private JButton photo6B;
    private JButton photo6B1;
    private JLabel photo6L;
    private JButton photo7B;
    private JButton photo7B1;
    private JLabel photo7L;
    private JButton photo8B;
    private JButton photo8B1;
    private JLabel photo8L;
    private JButton photo9B;
    private JButton photo9B1;
    private JLabel photo9L;
    private JPanel photosP;
    private JPanel piecesP;
    private JComboBox piscineCB;
    private JLabel piscineL;
    private JComboBox placardCB;
    private JLabel placardL;
    private JMenuItem printMI;
    private JTextField prixLoyerF;
    private JLabel prixLoyerL;
    private JTextField prixVenteF;
    private JLabel prixVenteL;
    private JTextField provChargeF;
    private JLabel provChargeL;
    private JTextField quartierF;
    private JLabel quartierL;
    private DateComboBox reserveDCB;
    private JLabel reserveL;
    private JTextField residanceF;
    private JLabel residanceL;
    private JComboBox salleBainCB;
    private JLabel salleBainL;
    private JMenuItem saveMI;
    private JComboBox secteurCB;
    private JLabel secteurL;
    private JComboBox sejourCB;
    private JLabel sejourL;
    private JComboBox solCB;
    private JLabel solL;
    private JLabel sortantL;
    private JScrollPane sortantSP;
    private JTextArea sortantTA;
    private JComboBox standingCB;
    private JLabel standingL;
    private JTextField surfaceBalconF;
    private JTextField surfaceCaveF;
    private JTextField surfaceChambreF;
    private JTextField surfaceCuisineF;
    private JTextField surfaceGarageF;
    private JTextField surfaceHabitableF;
    private JLabel surfaceHabitableL;
    private JTextField surfaceHallF;
    private JTextField surfaceLoggiaF;
    private JTextField surfaceMezzanineF;
    private JTextField surfaceSejourF;
    private JTextField surfaceTerrainF;
    private JTextField surfaceTerrasseF;
    private JComboBox terrasseCB;
    private JLabel terrasseL;
    private JPanel teteP;
    private JPanel textP;
    private JComboBox tvCB;
    private JLabel tvL;
    private JComboBox typeCB;
    private JLabel typeL;
    private JComboBox viagerCB;
    private JLabel viagerL;
    private JLabel vide;
    private JLabel vide1;
    private JLabel vide2;
    private JComboBox visibiliteCB;
    private JLabel visibiliteL;
    private JComboBox wcCB;
    private JLabel wcL;
    private JLabel archiveL;
    private JSplitPane jSplitPane1;
    private JPanel leftP;
    private JPanel rightP;
    private JSplitPane jSplitPane2;
    private JScrollPane photoSP;
    private JTextField internalIdF;
    private byte photo1[];
    private byte photo2[];
    private byte photo3[];
    private byte photo4[];
    private byte photo5[];
    private byte photo6[];
    private byte photo7[];
    private byte photo8[];
    private byte photo9[];
    private byte photo10[];
    private JFileChooser fileChooser;
    private File selectedFile;
    private Dimension screen;
}
